package presentation;

import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.io.FileNotFoundException;

import javax.swing.JPanel;

import control.CControl;

public class PMotorOverview extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public PMotorOverview(CControl cControl)
	{
		this.setBackground(Color.white);
		this.setLayout(new GridBagLayout());
		GridBagConstraints c  = new GridBagConstraints();
		
		
		JPanel dials = new JPanel();
		dials.setLayout(new GridLayout(1,4));
		

		c.anchor = GridBagConstraints.CENTER;
		c.fill = GridBagConstraints.BOTH;
		c.weightx = 0.5;
		c.weighty = 0.5;
		c.gridx = 0;
		c.gridy = 0;
		c.gridwidth = 2;
		c.gridheight = 1;
		
		this.add(dials,c);
		
		c.anchor = GridBagConstraints.CENTER;
		c.fill = GridBagConstraints.BOTH;
		c.weightx = 0.5;
		c.weighty = 0.5;
		c.gridx = 0;
		c.gridy = 1;
		c.gridwidth = 2;
		c.gridheight = 1;
		
		
		try {
			this.add(new PMotorErrorPanel(cControl),c);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		
		
		
		
		
	}

}

